<smart-editor (change)="onChange($event)" [fields]="fields" #editor></smart-editor>

<p>
    {{json}}
</p>
